{extend name="web/public/base" /}
{block name="header"}
<link rel="stylesheet" href="__PUBLIC__/js/fuelux/fuelux.css" type="text/css"/>
<script src="__PUBLIC__/js/fuelux/fuelux.js"></script>
{/block}
{block name="main"}
<section class="scrollable padder">
    <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
        <li><a><i class="fa fa-home"></i> 首页</a></li>
        <li class="active">系统配置</li>
        <li class="active">{$title}</li>
    </ul>
    <div class="row">
        <div class="col-sm-12">
            <section class="panel panel-default">
                <header class="panel-heading"> {$title}</header>
                <div style="margin-top:5px;margin-left:10px;margin-bottom:5px;">
                    <a class="btn btn-primary" href="{:url('add',array('pid'=>$id))}">新 增</a>
                </div>
                {notempty name="_list"}
                <div class="table-responsive">

                    <table class="table table-striped table-hover b-t b-light text-sm">
                        <thead>
                        <tr>
                            <th width="80px" onclick="sort('user_num',this)" class="th-sortable active"
                                data-toggle="class">ID号
                            </th>
                            <th>栏目名称</th>
                            <th>栏目url</th>
                            <th>排序</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name='_list' id='vo'}
                        <tr>
                            <td>{$vo.id}</td>
                            <td><a href="{:url('Menu/index',array('pid'=>$vo['id']))}">{$vo.title}</a></td>
                            <td>{$vo.url}</td>
                            <td>{$vo.sort}</td>
                            <td>
                                {eq name="vo.status" value="1"}<span style="color:green">正常</span>{/eq}
                                {eq name="vo.status" value="0"}<span style="color:red">隐藏</span>{/eq}
                            </td>
                            <td>
                                <a class="btn btn-info" href="{:url('edit',array('id'=>$vo['id']))}">编辑</a>
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <footer class="panel-footer">
                    <div class="row">
                        <div class="text-right text-center-xs">
                            {$page}
                        </div>
                    </div>
                </footer>
                {else/}
                <div style="text-align: center">
                    <image src="__PUBLIC__/images/empty.jpg"></image>
                </div>

                {/notempty}
            </section>
        </div>
    </div>
</section>
{/block}
{block name="footer"}
{/block}